from django.db import models

# Create your models here.
class Test(models.Model):
    name=models.CharField(max_length=20)
    objects = models.Manager()

class Contact(models.Model):
    name=models.CharField(max_length=20)
    age=models.IntegerField(default=18)
    email =models.EmailField()
    def __unicode__(self):
        return self.name
    
class Tag(models.Model):
    contact = models.ForeignKey('Contact',on_delete=models.CASCADE)
    name=models.CharField(max_length=50)
    def __unicode__(self):
        return self.name

